package com.ship.mapper;

import com.ship.dto.ShipDto;
import com.ship.dto.ShipSaveDto;
import com.ship.model.Ship;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
* @author Lucky Boy
* @description 针对表【ship】的数据库操作Mapper
* @createDate 2024-07-09 15:41:26
* @Entity com.ship.model.Ship
*/
@Mapper
public interface ShipMapper{


    List<Ship> selectBySearch(ShipDto shipDto);

    int insertShip(ShipSaveDto shipSaveDto);

    int deleteOne(Integer id);

    int deleteMany(String ids);

    int updateShip(ShipSaveDto shipSaveDto);

    List<Ship> selectAll();

    String[] selectNamesOrderById();

}
